home *** CD-ROM | disk | FTP | other *** search
- package symantec.itools.db.net;
-
- import java.io.DataInputStream;
- import java.io.DataOutputStream;
- import java.io.IOException;
- import java.io.InputStream;
- import symjava.sql.SQLException;
-
- public class LongVarBinary extends BinaryField {
- LongVarBinary() {
- }
-
- int getType() {
- return 72;
- }
-
- void read(DataInputStream is) throws SQLException, IOException, ErrorException {
- super.read(is);
- ServerObject obj = (ServerObject)NetClass.getNextObject(is);
- if (obj.getType() != 50) {
- ((ServerObject)this).onObjectError(obj);
- }
-
- }
-
- void write(DataOutputStream os) throws IOException {
- super.write(os);
- EOT eot = new EOT();
- eot.write(os);
- }
-
- boolean storesData() {
- return false;
- }
-
- public InputStream getAsciiStream() throws SQLException {
- throw new SQLException("Can't convert data to requested format");
- }
-
- public InputStream getUnicodeStream() throws SQLException {
- throw new SQLException("Can't convert data to requested format");
- }
-
- public InputStream getBinaryStream() throws SQLException {
- throw new SQLException("Can't convert data to requested format");
- }
-
- public void setAsciiStream(InputStream x, int length) throws SQLException {
- throw new SQLException("Can't convert data to requested format");
- }
-
- public void setUnicodeStream(InputStream x, int length) throws SQLException {
- throw new SQLException("Can't convert data to requested format");
- }
-
- public void setBinaryStream(InputStream x, int length) throws SQLException {
- throw new SQLException("Can't convert data to requested format");
- }
-
- public int getSQLType() {
- return -4;
- }
-
- public Object getObject() throws SQLException {
- throw new SQLException("Can't convert data to requested format");
- }
-
- public void setObject(Object obj) throws SQLException {
- throw new SQLException("Can't convert data to requested format");
- }
- }
-